package system

import "seven-admin/app/collection"

type AuthPost struct {
	collection.Model
	Code           string `gorm:"not null;default:'';comment:'岗位编码''"`
	Name           string `gorm:"not null;default:'';comment:'岗位名称''"`
	Remarks        string `gorm:"not null;default:'';comment:'岗位备注''"`
	Sort           uint16 `gorm:"not null;default:0;comment:'岗位排序'"`
	IsStop         uint8  `gorm:"not null;default:0;comment:'是否停用: 0=否, 1=是'"`
	IsAllHierarchy uint8  `gorm:"not null;default:1;comment:'是否所有层级: 0=否, 1=是'"`
	Hierarchy      []uint `gorm:"type:json;serializer:json;comment:'岗位层级'"`
	TenantId       uint   `gorm:"not null;default:0;comment:'所属租户'"`
	collection.SoftDelete
}
